package com.demo01.demo.entity;

import lombok.Data;
import com.demo01.demo.entity.PrimaryKey;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity
@Data
@Table(name="ordertable")
@IdClass(PrimaryKey.class)
public class OrderTable {

        @Id
        @Column(name="username")
        private String username;
        @Id
        @Column(name="drinkid")
        private String drinkid;
        @Column(name="drinkname")
        private String drinkname;
        @Column(name="drinkinfo")
        private String drinkinfo;
        @Column(name="drinkprice")
        private BigDecimal drinkprice;
        @Column(name="drinknum")
        private Integer drinknum;
        @Column(name="ordertime")
        private String ordertime;
        @Id
        @Column(name="orderid")
        private String orderid;
        @Column(name="pickid")
        private String pickid;
}
